//museum.js
//私藏博物馆
//获取应用实例
import Dialog from 'vant-weapp/dist/dialog/dialog';
const app = getApp()

Page({
  data: {
    list: [],
    show:false,
  },
  showxy() {
    console.log('aaa');
    setTimeout(() => {
      this.setData({
        show: true
      });
    }, 50);
  },
  onShow: function (options) {
    var self = this
    wx.request({
      url: app.serverUrl + 'Abouttwo/showMuseumlist',
      method: 'POST',
      header: {
        "Content-Type": "application/x-www-form-urlencoded"
      },
      data: {
        openid: app.openid,
        museumtagid:'1'
      },
      success: function (res) {
        console.log(res);
        self.setData({
          list: res.data.data,
        })
      },
    })
  },
  museumlist:function(res)
  {
    var self = this;
    console.log(res);
    var url = res.currentTarget.dataset.url;
    var museumid = res.currentTarget.dataset.museumid;
    var name = res.currentTarget.dataset.name;
    wx.navigateTo({
      url: url + '?museumid=' + museumid+'&name='+name,
    })
  }


})